<%
/**
 *      地址本
 *      @ param: title 标题
 *      @ param: isMultSelected 是否多选
 *      @ param: isMultSelected 
 *  $Author: amon_lei $
 *  $Date: 2005/01/01 13:59:01 $
 *  $Revision: 1.4 $ 
 *  created in 2004-12-12
 *
 *
 */
%>
<%
        // 地址本类型
        String ALType = "";
        String alertMessage = "未将参数ALType值传入";
        String requestKey = "ALType";
        %><%@ include file = "../alert\_if_RequestValue_Null_Then_alert_return.jsp"%><%
        ALType = request.getParameter("ALType");
        logger.debug("地址本类型：　" + ALType);

        // 根节点id
        String rootOrgCode = null;
        alertMessage = "未将参数rootOrgCode值传入";
        requestKey = "rootOrgCode";
        %><%@ include file = "../alert\_if_RequestValue_Null_Then_alert_return.jsp"%><%
        rootOrgCode = request.getParameter("rootOrgCode");
        String rootRoleCode = null;
        alertMessage = "未将参数rootRoleCode值传入";
        requestKey = "rootRoleCode";
        %><%@ include file = "../alert\_if_RequestValue_Null_Then_alert_return.jsp"%><%
        rootRoleCode = request.getParameter("rootRoleCode");

        // 是否多选
        boolean isMultSelected = false;
        alertMessage = "未将参数isMultSelected值传入";
        requestKey = "isMultSelected";
        %><%@ include file = "../alert\_if_RequestValue_Null_Then_alert_return.jsp"%><%
        isMultSelected = request.getParameter("isMultSelected").equals("true");

        // 选择的节点类型
        String selectedNodeType = 
        alertMessage = "未将参数selectedNodeType值传入";
        requestKey = "selectedNodeType";
        %><%@ include file = "../alert\_if_RequestValue_Null_Then_alert_return.jsp"%><%
        selectedNodeType = request.getParameter("selectedNodeType");
%>
<html>
<title>地址本</title>
<head>
        <link type="text/css" rel="stylesheet" href="<%= WebPath%>/common/AddressList/css/AddressList.css">
        <%@ include file = "./js\_AddressList_js.jsp"%>
</head>
 <body>
<!-- 地址本重定向用 -->
<form name="RedirectForm" method='post'>
        <input type='hidden' name='ALType' value='<%= ALType%>'>
        <input type='hidden' name='rootOrgCode' value='<%= rootOrgCode%>'>
        <input type='hidden' name='rootRoleCode' value='<%= rootRoleCode%>'>
        <input type='hidden' name='isMultSelected' value='<%= isMultSelected%>'>
        <input type='hidden' name='selectedNodeType' value='<%= selectedNodeType%>'>
</form>

  <table width="100%" border="1" cellspacing="0" cellpadding="0" align="center" >
    <tr>
      <td background="<%= request.getContextPath()%>/images/ALTop.jpg"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0"  height="1">
          <tr> 
            <td></td>
          </tr>
        </table>
        <table>
        <tr>
            <td height="10">&nbsp;</td>
        </tr>
        <tr>
            <td><font size="3"><b>&nbsp;&nbsp;<%= title%></b></font></td>
        </tr>
        <tr>
            <td height="25"><!-- 不同地址切换 -->
                <%= AlistType%></td>
        </tr>
        </table>
        </td>
    </tr>
    <tr>
      <td> 
        <table width="100%" border="0" cellpadding="0" cellspacing="0" align=center>
          <tr> 
            <td width="45%" align="center"> 
              <iframe src="<%= WebPath%>/common/AddressList/frame/<%= ALType%>_Frame.jsp?rootOrgCode=<%= rootOrgCode%>&rootRoleCode=<%= rootRoleCode%>&selectedNodeType=<%= selectedNodeType%>&isMultSelected=<%= isMultSelected%>" width="100%" height="350" scrolling="yes" frameborder="0" name="treeId"> 
              </iframe>
            </td>
            <td width="10%" align="center"><br>
       <%
         if(isMultSelected)
         {
        %>
          <input type="button" value="全选" onclick="allSelected()" ><br><br>
        <% 
         }           
       %>
               
               <input type="button" value="删除" onclick="del()" ><br><br>
               <input type="button" value="全删" onclick="delAll()"><br>
            </td>
            <td width="45%" align="center">
                 <select name="selecteditermid" size="23" multiple style="width=2in;"></select>
                 <select name="selecteditermname"  size="6" multiple style="display:none"></select>
                 <select name="selecteditermtype" size="6" multiple style="display:none"></select>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>

    </tr>
    <tr >
      <td height="35" valign="middle" align="center" background="<%= request.getContextPath()%>/images/bg-di-center.gif"><input type="button" name="makesure" onclick="javascript:makeSure()" value="确认">
      &nbsp;&nbsp;&nbsp;&nbsp;
      <input type="button" name="cancel" onclick="javascript:cancel()" value="取消"></td>
    </tr>
  </table>
 </body>
</html>
